<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>分站库库退货出库 - 物流管理系统</title>
	<style media="all" type="text/css">
		@import "style/all.css";
		@import "style/jquery/ui.all.css";
	</style>
	<script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="script/jquery-ui-personalized-1.6rc6.min.js"></script>
	<script type="text/javascript" src="script/date.js"></script>
	<script type="text/javascript" src='script/common.js'></script>
    <script>
		   $(function(){
			    datepicker('.date-three');
		   });

          function velidateback(){
		        if(confirm('是否退货?')){
				    window.location.href='depot_manage/back/back_list.jsp';
				}    
		  
		  }
		  function moreback(){
		        if(document.frm.checkAll[0].checked==false && document.frm.checkAll[1].checked==false && document.frm.checkAll[2].checked==false &&document.frm.checkAll[3].checked==false){
					alert('请选择您要退货的商品!');
					return false;
				}    
				if(confirm('是否退货?')){
					window.location.href='depot_manage/back/back_moreList.jsp';
				}
				
		  }
		  function checkAll(){
			   for(var i=0;i<4;i++){
				  document.frm.checkAll[i].checked=true;
			   }
			   
		  }
		  function checkNo(){
			   for(var i=0;i<4;i++){
				  document.frm.checkAll[i].checked=false;
			   }
			   
		  }
	</script>
	<script>
		 function checkStart(){
			  var start_time=document.getElementById("start_time").value;
			  if(start_time=="" || start_time==null){
				alert("请选择开始日期!");
				return false;
			  }
			  return true;
		 }
		 function checkEnd(){
			 var end_time=document.getElementById("end_time").value;
		     if(end_time=="" || end_time==null){
				alert("请选择结束日期!");
				return false;
			}
			return true;
		 
		 }
		 function checkSelect(){
		     if(checkStart()){
				if(checkEnd()){
				    return true;
				}
				return false;
			}
			return false;
		 }
	</script>

</head>
<body style="background: none">
	<div class="top-bar">
		<!--a href="#" class="button">取 消</a><a href="#" class="button">保 存</a-->
		<h1>分站库库退货出库</h1>
		<div class="breadcrumbs">
			<div class="button-bar">
				<input type="button" name="help" value="帮助" class="button"  onclick="help('物流管理系统')"/>
				<input type="button" name="select" value="查询" class="button" onclick="return checkSelect() "/>
			</div>
			<a href="index.jsp" target="_top"  >首页</a> /
			<a href="depot_manage/index.jsp" target="_top"  >库房管理</a> 
		</div>
	</div>
    <div class="select-bar">
	  <table class="select-table">
		<tr>
			<th>开始日期</th>
			<td style="white-space:nowrap"><input type="text" id="start_time" class="date-three text" readonly"/><span style="color:red">*</span></td>
			<th>结束日期</th>
			<td style="white-space:nowrap"><input type="text" name="end_time" class="date-three text" readonly/><span style="color:red">*</span></td>
			<th></th>
			<td></td>
		</tr>
		
					 
	  </table>
	  <label></label>
    </div>
	
	<div class="table">
		<img src="style/img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
		<img src="style/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
		<form name="frm" action="" method="post">
			<table class="listing form" cellpadding="0" cellspacing="0">
				<tr>
					<th class="first">选择</th>
					<th>商品编号</th>
					<th>商品名称</th>
					<th>型号</th>
					<th>厂商</th>
					<th>售价</th>
					<th>退货数量</th>
					<th>计量单位</th>
					<th>退货日期</th>
					<th >操作</th>
				</tr>
				<tr>
				   <td class="first"><input type="checkbox" name="checkAll"></td>
				   <td>SN9996</td>
				   <td>数码相机SONY</td>
				   <td>DSC-T900</td>
				   <td>SONY</td>
				   <td>5000</td>
				   <td>1</td>
				   <td>台</td>
				   <td>2009-5-20</td>
				   <td><img title="退货到中心库房" onclick="velidateback()" src="style/img/Fugue_1029.png"/></td>
				</tr>
				<tr>
				   <td class="first"><input type="checkbox" name="checkAll"></td>
				   <td>SX9997</td>
				   <td>三星数码相机</td>
				   <td>DSC-HX1</td>
				   <td>三星</td>
				   <td>5000</td>
				   <td>2</td>
				   <td>台</td>
				   <td>2009-5-20</td>
				   <td><img title="退货到中心库房" onclick="velidateback()" src="style/img/Fugue_1029.png"/></td>
				</tr>
				<tr>
				   <td class="first"><input type="checkbox" name="checkAll"></td>
				   <td>KN9663</td>
				   <td>佳能数码相机</td>
				   <td>DSC-W200</td>
				   <td>佳能</td>
				   <td>5000</td>
				   <td>1</td>
				   <td>台</td>
				   <td>2009-5-20</td>
				   <td><img title="退货到中心库房" onclick="velidateback()" src="style/img/Fugue_1029.png"/></td>
				</tr>
				<tr>
				   <td class="first"><input type="checkbox" name="checkAll"></td>
				   <td>HS9664</td>
				   <td>富士数码相机</td>
				   <td>DSC-W190</td>
				   <td>富士</td>
				   <td>5000</td>
				   <td>3</td>
				   <td>台</td>
				   <td>2009-5-20</td>
				   <td><img title="退货到中心库房" onclick="velidateback()" src="style/img/Fugue_1029.png"/></td>
				</tr>
			</table>
		  </form>
		<br/>
		<input type="button" value="全选" class="button" onclick="checkAll()"/>&nbsp;
		<input type="button" value="全不选" class="button" onclick="checkNo()"/>
		&nbsp;
		<input type="button" value="退货到中心库房" class="button" onclick="moreback()"/>
        <div class="pager">
			共59条记录 每页<input value="10" size="2" />条
			第<input value="1" size="2"/>页/共5页
			<a href="#">第一页</a>
			<a href="#">上一页</a>
			<a href="#">下一页</a>
			<a href="#">最后一页</a>
			转到<input value="1" size="2" />页
			<button width="20" onclick="window.location.reload();">GO</button>
		</div>
	</div>
</body>
</html>
